/**
 * @class 项目操作token的类
 */
const TOKEN_KEY = 'systemToken'

export function getToken(): string {
  const token = window.localStorage.getItem(TOKEN_KEY)
  if (token) {
    return token
  }
  return ''
}

export function setToken(value: string): void {
  window.localStorage.setItem(TOKEN_KEY, value)
}

export function clearToken() {
  window.localStorage.removeItem(TOKEN_KEY)
}
